/**
 * 
 */
package lablayer.model;

import java.util.ArrayList;
import java.util.List;
/**
 *
 */
public abstract class LLNode {
	protected List<LLNode> nodes = new ArrayList<LLNode>();
	
	protected String xml;
	
	public void add(LLNode node) {
		try {
			assert node != null : "Node.add(Node node) have null pointer";			
			this.nodes.add(node);
		} catch (Exception e) {
			e.printStackTrace();
		}	
	}
	
	public void remove(LLNode node) {
		try {
			assert node != null : "Node.remove(Node node) have null pointer";
			this.nodes.remove(node);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
